<%@ tag description="Configures a hudson instance for a project" pageEncoding="ISO-8859-1" %>
<%@ taglib prefix="iwebmvc" uri="http://tags.iwebmvc.com" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt" %>
<%@ attribute name="projectClass" type="java.lang.Class" required="true" %>
<c-rt:set var="sessionUser" value="<%= org.internna.iwebmvc.security.UserManager.SESSION_USER %>" />
<input type="hidden" id="hudsonProject" name="hudsonProject" />
<div class="sonarConfiguration">
    <div>
        <iwebmvc:textbox id="hudson" entityClass="${projectClass}" path="hudson" />
        <iwebmvc:locator id="hudson" entityClass="${projectClass}" path="connectionDetails" baseColumnWidth="100" pages="5" rows="6" supportsEditionMode="false" required="true" currentDepthLevel="0" nestedCrud="true" />
    </div>
    <div style="width:100%;text-align:right;padding-top:5px;position:relative">
        <span id="hudsonValidationWarningContainer" class="validationWarning"></span>
        <span id="hudsonLoadingContainer" style="display:none"><img style="vertical-align:middle" src='<c:url value="resource.iwebmvc?file=images/loading.gif" />' alt='' /></span>
        <iwebmvc:button buttonId="hudsonSave" label="i18n.hudson.saveConfiguration" buttonIcon="/resource.iwebmvc?file=/images/hudson.gif">
            saveHudsonConfiguration();
        </iwebmvc:button>
    </div>
</div>